Skip to content

hash: every guard and wipe on webcpp::secure; hash's copies deleted - #15

Merged
pinhopro merged 12 commits into
mainfrom
secure/genesis
Nov 26, 2026
Merged

pinhopro merged 12 commits into
mainfrom
secure/genesis

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

hash on webcpp::secure: every keyed function holds secure::timing_guard (36 sites, the engaged arguments unchanged, the HKDF byte-pieces forms from hkdf-pieces included) and every wipe is secure::erase_secret (88 sites, the same bytes); hash's detail/timing.hpp and detail/wipe.hpp are deleted with no alias, and hash depends on config and secure. Its own seam recorder and DIT helper stay in test/support/ (owner's decision O1).

Also: async_cobalt checks under MSVC that each promise frame is aligned (Boost.Cobalt 1.92.0's frames were 8 mod 16 on MSVC, a crash in release; the superproject's CI carries upstream's fix as a Boost patch); the DIT section of the backends page, regenerated, says what Windows on ARM64 does after a catch; the guard's rows measured again on an idle machine; the changelog.

Verified locally before merge on every lane with secure and crypto (clang, gcc-15, wasip2, wasip3, Emscripten, release builds, macOS and Linux lint, MSVC 14.3 and 14.5 x64 debug, MSVC 14.5 arm64 debug for the timing tests). Depends on webcpporg/secure#1 (merged).

🤖 Generated with Claude Code

R added 12 commits November 25, 2026 05:11
…ery wipe is secure's erase_secret; hash's copies are gone and hash depends on secure
…g the targets where it executes nothing (collect.py --render-only)
…now reads it again at its end (secure's guard, after Windows on ARM64's catch)
…gned to __STDCPP_DEFAULT_NEW_ALIGNMENT__ (Boost 1.92.0's Cobalt placed it 8 bytes off, and MSVC x64 release faulted on movaps)
… (clang-tidy's static-accessed-through-instance on a static await_ready)
…with a bounds-checked loop in place of string_view::substr, which may throw from a noexcept function (clang-tidy's bugprone-exception-escape)
…an exception leaves DIT as found while it unwinds the call and that Windows on ARM64 clears it after the catch; the MACs page names every system where mac sets DIT
…ns, set 1.2 ns); the provisional NOTE of the guard goes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant